package com.zhijian.wharf.dao;

import com.zhijian.wharf.entity.po.DatabaseDelete;
import com.zhijian.wharf.entity.vo.request.DatabaseDeleteSearchVo;
import com.zhijian.wharf.entity.vo.response.DatabaseDeleteVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DatabaseDeleteMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DatabaseDelete record);

    int insertSelective(DatabaseDelete record);

    DatabaseDelete selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DatabaseDelete record);

    int updateByPrimaryKey(DatabaseDelete record);

    /**
     * 查询总数
     *
     * @param databaseDeleteSearchVo
     * @return
     */
    int count(DatabaseDeleteSearchVo databaseDeleteSearchVo);

    /**
     * 查询列表
     *
     * @param databaseDeleteSearchVo
     * @return
     */
    List<DatabaseDeleteVo> selectList(DatabaseDeleteSearchVo databaseDeleteSearchVo);

    /**
     * 查询单个
     *
     * @param databaseDeleteSearchVo
     * @return
     */
    DatabaseDeleteVo selectOne(DatabaseDeleteSearchVo databaseDeleteSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    DatabaseDeleteVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param databaseDeleteSearchVo
     * @return
     */
    void deleteByCondition(DatabaseDeleteSearchVo databaseDeleteSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<DatabaseDelete> entities);

    /**
     * 根据DeleteCount查询列表
     *
     * @param deleteCount
     * @return
     */
    List<DatabaseDeleteVo> selectListByDeleteCount(Long deleteCount);
}